<const/{name, write}=input/>
<div>${name}</div>
<script>
  // TODO: In SSR this effect will be resumed depth first while CSR will be
  // queued breadth first so the output will be different. Figure out if we
  // care and then restore the `write` call below.

  // write(`mounted ${name}`);
  $signal.onabort = () => {
    write(`destroyed ${name}`)
  };
</script>